package com.kaifamiao.date1103;

public class Doctor {
	
	String name ;
	
	public Doctor(String name) {
		super();
		this.name = name;
	}

	public void changeGender( Customer c ) {
		// c.gender = c.gender == '男' ? '女' : '男' ; 
		if( c.gender == '男' ) {
			c.gender = '女' ;
			return ;
		}
		
		if( c.gender == '女' ) {
			c.gender = '男' ;
		}
	}
	
	public static void main(String[] args) {
		Doctor d = new Doctor( "李时珍" );
		Customer c = new Customer( "某星" , '男' , 22 );
		System.out.println( c ); // c.toString()
		d.changeGender( c );
		System.out.println( c ); // c.toString()
	}

}
